<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
  <?php if(empty($title)): ?><title>Notice - QSC</title>
  <?php else: ?>
  <title>$title</title><?php endif; ?>
  
  <meta name="description" content="Notice"/>
  <meta name="keywords" content="QSC,求是潮,Notice"/>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common.css" media="all">
  <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
  



<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/userhome.css" media="all">
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/js/fancybox/jquery.fancybox.css" media="all">
  <script type="text/javascript" src="__PUBLIC__/js/fancybox/jquery.fancybox.pack.js"></script>
  
  <script type="text/javascript" src="__PUBLIC__/js/notice.dock.js"></script>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/srtp.css" media="all">
  <script>
	function setTab(n){
      var tli=document.getElementById("tags").getElementsByTagName("div");  
      var mli=document.getElementById("tagcontents").getElementsByTagName("div");  
      for(i=0;i<tli.length;i++){  
      tli[i].className=i==n?"taghover":"nothover";  
      mli[i].style.display=i==n?"block":"none";  
      } 
    }  
  </script>
</head>
<body>
	<div id="topbar">
		<div id="topbar_sub">
		<div id="topbar_info" class="clearfix">
			<a href = "http://www.qsc.zju.edu.cn/" target="_blank">求是潮</a>
			<p>|</p>
			<a href = "http://www.qsc.zju.edu.cn/share" target="_blank">Share学习交流平台</a>
			<a href = "http://www.qsc.zju.edu.cn/bubble" target="_blank">Bubble Music泡音乐</a>
			<a href = "__APP__">Notice</a>
		</div>
		<div id="topbar_link" class="clearfix">
			<?php if(empty($self)): ?><a href = "<?php echo U('account/login');?>" class="btn">登录</a>
			<a href = "<?php echo U('account/register');?>" class = "btn">注册</a>
			<?php else: ?>
			<a href="<?php echo U('account/');?>"     class="btn">设置</a>
			<a href="<?php echo U('account/logout');?>" class="btn">注销</a><?php endif; ?>
		</div>
		</div>
	</div>
	
    <div id = "main" class="clearfix">
    
	<div id = "nav" class="clearfix">
		<div id = "nav_menu">
			<a href = "__APP__" class = "btn" id = "nav_home"><div>首页</div></a>
			<?php if(empty($self)): ?><a href = "<?php echo U('account/login');?>" class = "btn" id = "nav_account"><div>个人主页</div></a>
			<?php else: ?>
			<a href = "<?php echo NoticeUrl::getAccount($self);?>" class = "btn" id = "nav_account"><div>个人主页</div></a><?php endif; ?>
			<a href = "<?php echo U('browse/');?>" class = "btn" id = "nav_browse"><div>活动回顾</div></a>
		</div>
		<div id = "search">
			<form  action="<?php echo U('browse/');?>" method="get">
				<input type="text" name="q" value="" id="searchtext"/>
				<input type="submit" id = "go" name="submit" value=""/>
			</form>
		</div>
	</div>
  <div id="page" class="clearfix sunye">





<div class="col-main main">
<div class="main-wrap main" id="malegefuck">
  <div id="intro" class="mod">
    <div class="titlebar">
    <h2 class="title">
      关于我们
    </h2>
    <?php if(($user['uid'])  ==  $self['uid']): ?><a class="more" href="<?php echo U('account/intro');?>">[编辑]</a><?php endif; ?>
    </div>
	<?php if(!empty($user['intro'])): ?><div class="content">
      <?php echo ($user['intro']); ?>
    </div>
	<?php else: ?>
	<div class="content">
		暂时还没有介绍哦亲~
	</div><?php endif; ?>
  </div>
  <div id="created" class="mod">
    <div class="titlebar">
    <h2 class="title">近期活动</h2>
      <a class="more" href="">...more</a>
    </div>
    <div class="content">
      <?php $events= $eventsCreated; ?>
      <ul class = "section clearfix">
  <?php if(empty($events)): ?><li>Notice目前找不到符合条件的活动. </li>
  <?php else: ?>
  <?php if(is_array($events)): $i = 0; $__LIST__ = $events;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li class = "item clearfix">
      <div class="event_img">
        <a href="<?php echo U("event/$vo[id]");?>">
          <img src = "<?php echo NoticeUrl::getEventPoster($vo['img'],'m');?>" width="90" height="90" />
        </a>
      </div>
      <div class="event_info">
        <h3><a href="<?php echo U("event/$vo[id]");?>"><?php echo ($vo["title"]); ?></a></h3>
        <?php echo (substr($vo["time_start"],0,-3)); ?><br/>
        <?php echo ($vo["location"]); ?><br/>
      </div>
    </li><?php endforeach; endif; else: echo "" ;endif; ?><?php endif; ?>
</ul>



    </div>
  </div>
<!--
<div id="mark">
<h1>参加的</h1>
  <?php if(is_array($mymark)): $i = 0; $__LIST__ = $mymark;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><h2><?php echo ($vo['id']); ?></h2>
	<p><?php echo ($vo['title']); ?></p>
	<img src = "<?php echo NoticeUrl::getEventPoster($vo['img'],'');?>" width=500 height=300 border=0><?php endforeach; endif; else: echo "" ;endif; ?>
	<h1>感兴趣的的</h1>
	<?php if(is_array($mywish)): $i = 0; $__LIST__ = $mywish;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><h2><?php echo ($vo['id']); ?></h2>
	<p><?php echo ($vo['title']); ?></p>
	<img src = "<?php echo NoticeUrl::getEventPoster($vo['img'],'');?>" width=500 height=300 border=0><?php endforeach; endif; else: echo "" ;endif; ?>
</div>
-->
  <div id="topic" class="mod" style="display:none">
    <h2 class="title">
      讨论板
    </h2>
    <div class="content">
    </div>
  </div>
  
</div>
</div>

<div class="main col-sub">
  <div id="account" class="menu_mod">
        <a href="<?php echo NoticeUrl::getAccount($user);?>" style="text-align:center;">
      <img src="<?php echo NoticeUrl::getPhoto($user['uid'], 'big');?>" alt=""/>
    </a>
    <q><?php echo ($user['signature']); ?></q>
    <div class="menu">
    <?php if(($user['uid'])  ==  $self['uid']): ?><a class="" href="<?php echo U('account/profile');?>">[编辑]</a>
    <?php else: ?>
      <?php if($isMyFriend): ?><a class="btn" href="<?php echo U('friend/del/'.$user['uid']);?>">- 取消关注</a>
      <?php else: ?>
        <a class="btn" href="<?php echo U('friend/add/'.$user['uid']);?>">+ 关注</a>
        <a class="btn" href="" style="display:none;">站短</a><?php endif; ?><?php endif; ?>
    </div>
  </div>
  
  <div id = "member" class="mod" style="display:none">
    <div class = "titlebar">
      <h2 class="title">成员</h2>
      <a class="more" href="<?php echo U('group/'.$user['uid'].'/friend');?>">...more</a>
    </div>
    <?php $users= $friends ?>
        <ul class="clearfix users_lite">
    <?php if(is_array($users)): $i = 0; $__LIST__ = $users;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li>
        <a href="<?php echo NoticeUrl::getAccount($vo);?>">
          <img src = "<?php echo NoticeUrl::getPhoto($vo['uid']);?>" >
        </a>
	<div><?php echo ($vo["name"]); ?> </div>
      </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
  
  <div id = "revfriend" class="mod">
    <div class = "titlebar1">
      <h2 class="title">关注者</h2>
      <a class="more" href="<?php echo U('friend/rev/'.$user['uid']);?>">...more</a>
    </div>
    <?php $users= $revfriends ?>
        <ul class="clearfix users_lite">
    <?php if(is_array($users)): $i = 0; $__LIST__ = $users;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li>
        <a href="<?php echo NoticeUrl::getAccount($vo);?>">
          <img src = "<?php echo NoticeUrl::getPhoto($vo['uid']);?>" >
        </a>
	<div><?php echo ($vo["name"]); ?> </div>
      </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>
 
    </div>
    <div id = "footer">
    </div>
  </div>
  <div id="dock">
  <div class="main-wrap">
    <?php if(empty($self)): ?><a id="dock_login" href = "<?php echo U('/account/login');?>" class = "navtopy">登录</a>
    | <a id="dock_alert" href="<?php echo U('/alert/');?>" class="navtopy">系统消息</a>
    | <a id="dock_register" href = "<?php echo U('/account/register');?>" class = "navtopy">注册</a>
    <?php else: ?>
    <a id="dock_account" href="<?php echo NoticeUrl::getAccount($self);?>"><?php echo ($self["name"]); ?></a>
    | <a id="dock_setting" href="<?php echo U('Home-account/');?>" class="navtopy">设置</a>
    <!--| <a id="dock_pm" href="<?php echo U('Home-pm/');?>" class="navtopy">短信</a>  TODO-->
    | <a id="dock_alert" href="<?php echo U('/alert/');?>" class="navtopy">系统消息</a>
    | <a id="dock_logout" href="<?php echo U('/account/logout');?>" class="navtopy">注销</a><?php endif; ?>
  </div>
  <script type="text/javascript">
    $(document).ready(function(){
      NoticeDock.get({
        uid:  "<?php echo ($self["uid"]); ?>",
        username: "<?php echo ($self["name"]); ?>"
      });
    });
  </script>
</div>
</body>
</html>